<%--
  Created by IntelliJ IDEA.
  User: ZhengHQ
  Date: 2018-09-23
  Time: 19:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<p>
    欢迎使用GIFT-EMS礼记后台管理系统，请选择左侧导航栏的功能开始使用。
</p>
<a class="btn btn-success" href="user!addAuthCode.action"><i class="icon-share-alt"></i> 生成验证码</a>
<br/>
<div style="margin: 16px 0;">
    <h3>${authCodeTip}<b style="color: red;">${authCode}</b></h3>
</div>

<div class="card">
    <div class="card-header">
        <h1 class="card-title h5">销量排行榜（推荐榜）</h1>
        <a class="btn btn-success" href="orderItem!rank.action"><i class="icon-chart"></i> 加载排行榜</a>
    </div>
    <div class="card-block">

        <div class="row">
            <c:forEach var="l" items="${list}">
                <div class="col-md-3 interval">
            <table class="table table-bordered table-striped table-condensed">
                <thead>
                <tr>
                    <th>类型</th>
                    <th>礼品名称</th>
                    <th>销售量</th>
                </tr>
                </thead>
                <tbody
                <c:forEach var="o" items="${l}">
                    <tr>
                        <td><c:out value="${o.typeName}"/></td>
                        <td><c:out value="${o.giftName}"/></td>
                        <td><c:out value="${o.sumQuanitity}"/></td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
                </div>
            </c:forEach>
        </div>
    </div>

</div>

